<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="sx" uri="/struts-dojo-tags"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
	<head>
		<link href="style/style1.css" rel="stylesheet" type="text/css">
		<link href="style/global.css" rel="stylesheet" type="text/css">
		<script type="text/javascript" src="javascript/confirm.js"></script>
		<script type="text/javascript" src="javascript/table.js"></script>
		<sx:head />
	</head>
	<body>
		<div id="addrecord">

			<center>
				<h3>
					<br>
					相册信息列表
				</h3>



				<div class="managerTable">
					<table>
						<tr>
							<th width="300">
								<div align="center">
									相册名
								</div>
							</th>

							<th width="100">
								<div align="center">
									博主
								</div>
							</th>

							<th width="100">
								<div align="center">
									详细信息
								</div>
							</th>
							<th width="100">
								<div align="center">
									删除
								</div>
							</th>


						</tr>
						<s:iterator value="pageAlbumListList.pageList" id="album"
							status="st">
							<tr
								<s:if test="#st.odd==false">style="background-color: #fff"</s:if>
								onmouseover="onDivOver(this)" onmouseout="onDivOut(this)">
								<td align="left">
									${album.albumName }
								</td>

								<td align="center">
									${album.users.account }
								</td>


								<td align="center">
									查看
								</td>

								<td align="center">
									<a
										href="deleteAlbum.action?albumId=${album.albumId}&userType=2">删除</a>

								</td>

							</tr>
						</s:iterator>
						<tr>

							<td colspan="4">
								<span class="pagerFont"> <s:if
										test="!pageAlbumListList.isFirstPage()">
										<a id="link1" href="listAllAlbum.action?page=first">首页 </a>

										<a id="link3" href="listAllAlbum.action?page=previous">上一页 </a>
									</s:if> 共 <s:property value="pageAlbumListList.getPageCount()" /> 页
									&nbsp;&nbsp; 当前第 <s:property
										value="pageAlbumListList.getPage()+1" /> <s:if
										test="!pageAlbumListList.isLastPage()">
										<a id="link4" href="listAllAlbum.action?page=next">下一页 </a>
										<a id="link2" href="listAllAlbum.action?page=last">末页 </a>
									</s:if> </span>

							</td>
						</tr>
					</table>
				</div>
			</center>
		</div>
	</body>
</html>
